package com.example.basic01;

import lombok.extern.slf4j.Slf4j;

import java.util.HashMap;

/**
 * @Description
 * @Date 2021/6/30
 * @Created by Jonathan
 */
@Slf4j
public class HashMapDemo {
    public static void main(String[] args) {
        HashMap<String, String> map = new HashMap<>();
        map.put("1", "1");
        map.put("2", "3");
        map.forEach((k, v) -> {
            log.info("k:{}-v:{}", k, v);
        });
    }
}
